Transient buoyant convection in a porous-medium enclosure by sudden imposition of gravity