An analytical model of icicle growth