Pion photo- and electroproduction in relativistic baryon ChPT