Physics behind water rocket