Atomic layer deposition of materials for applications to photovoltaics