West Ham's hopes of reaching the Europa League group stage were dashed after a 1-0 play-off defeat to Astra Giurgiu saw the Romanian champions progress 2-1 on aggregate.