Analysis of low intensity square wave modulated light beams by measuring the Laplace or squared cosine transform of the time-interval probability