Wettability Model Considering Three-Phase Interfacial Energetics in Particle Method