Electromagnetic interactions of hadrons