De novo design of modular protein biosensors