Magainin 2 channel formation in planar lipid membranes: the role of lipid polar groups and ergosterol