Derivation of standard error of differences of means