On the theory of optimal sensor placement