Dynamics of photoexcited carriers and spins in InAsP ternary alloys