Text this: Design optimization of a phase-change capacitive sensor for irreversible temperature threshold monitoring and its eco-friendly and wireless implementation