Two-dimensional building blocks for photocatalytic ammonia production