Endoscopy applications for the second law analysis in hydromagnetic peristaltic nanomaterial rheology