Mechanism of lamellar spacing adjustment in directionally frozen agar gels