An Analytic Solution for the Frontal Flow Period in 1D Counter-Current Spontaneous Imbibition into Fractured Porous Media Including Gravity and Wettability Effects