Pore shape development from a bubble captured by a solidification front