Photoproduction of neutral pions to discrete nuclear states