Relationship between cracking and electrical resistance in reinforced and unreinforced concrete