Monolayer to Bilayer Structural Transition in Confined Pyrrolidinium-Based Ionic Liquids.