When was it proposed that electricity and magnetism were distinct effects by scientists William Gilbert ?
In 1663 , German physicist Otto von Guericke created the first electrostatic generator , which produced static electricity by applying friction .