Genetically encoded force sensors for measuring mechanical forces in proteins