Structures of a phycobilisome in light-harvesting and photoprotected states