Common framework for surface plasmon binding and voltage sensing and microscopy with transmission line representation