Hydrocarbon chain conformation in an intercalated surfactant monolayer and bilayer