Intracellular construction of topology-controlled polypeptide nanostructures with diverse biological functions