Envoyer par SMS: First-principles design of nanostructured hybrid photovoltaics based on layered transition metal phosphates