Photohadronic Processes in Astrophysical Environments