Phase transitions and aging phenomena in dielectriclike polymeric materials investigated by ac measurements