Tracing the two- to three-dimensional transition in the InAs/GaAs(001) heteroepitaxial growth