Virus-templated FRET platform for the rational design of ratiometric fluorescent nanosensors.