Wetting morphologies and their transitions in grooved substrates