Electronic and structural anomalies in lead chalcogenides