Two-nucleon electromagnetic current in chiral effective field theory: One-pion exchange and short-range contributions