Statistics for Hamiltonian cycles in maximal planar graphs and planar triangulations