Dynamic behavior of near-surface nanobubbles formation and development