In working of an electric fan and a loudspeaker from where does the energy comes from?