One-dimensional phase transition of dipolar molecules inside zeolite pores