Sampling Signals from a Union of Subspaces