Synthesis, crystal structure, and thermoelectric properties of ternary phosphide BaCu5P3