Prüfer-like conditions on an amalgamated algebra along an ideal