Sample size calculation for stepped wedge and other longitudinal cluster randomised trials