Towards high-performance two-dimensional black phosphorus optoelectronic devices: the role of metal contacts