Modelling Terrestrial and Potential Extraterrestrial Photopigments via Density Functional Theory