Photoelectricity within classical physics: from the photocurrents of Edmond Becquerel to the first measurement of the electron charge