Electrical properties and spintronic application of carbon phosphide nanoribbons with edge functionalization