REC, Damodar Valley inks pacts worth Rs 588 cr to develop tubed coal mines