A General Scaling Method for Spontaneous Imbibition