Analysis of quasi-static vapour bubble shape during growth and departure