Properties of chains of prime ideals in an amalgamated algebra along an ideal