Measurement of the double-beta decay half-life of Nd-150 and search for neutrinoless decay modes with the NEMO-3 detector