Interaction of a shock with a sinusoidally perturbed flame