A strong convergence theorem for common fixed points of two relatively nonexpansive mappings and its applications