Theoretical analysis of droplet transition from Cassie to Wenzel state