Relationship of the Contact Angle to Interfacial Energies