Performance of the cms forward pixel detector and analysis of the Bc to J/psi pi decay channel