Almost periodic functions in finite-dimensional space with the spectrum in a cone