Directly measuring mean and variance of infinite-spectrum observables such as the photon orbital angular momentum