Common fixed point theorems for generalized contractive mappings with applications