electrcal working principle of washing machine