Rayleigh-Taylor instability of an interface in a nonwettable porous medium