H− photodetachment and radiative attachment for astrophysical applications