Layer-by-layer assembled photocatalysts for environmental remediation and solar energy conversion