Effects of optical and environmental parameters on angle-resolved photoemission from materials