Undulations in a Confined Lamellar System with Surface Anchoring