Electromagnetic properties of ground-state and excited-state pseudoscalar mesons