Pathwise optimization for bridge-type estimators and its applications