Inquiry ordered into death of undertrial in UP