Structural, mechanical, electronic and optical properties of BBi, BP and their ternary alloys BBi1−xPx