Measurement of the Decay of the Y(1S) and Y(2S) Resonances To Muon Pairs