A two-stage approach for joint modeling of longitudinal measurements and competing risks data