Bolivian court upholds legislation criminalising abortion