A modified EKS code for the calculation of NLO double differential corss sections of single-inclusive jet and dijet production at hadron colliders