Modeling the drop formation process in inkjet printheads