Methods of measuring moisture content applicable to building materials