A theory of generalised coordinates for stochastic differential equations