The Design And Validation Of A Spacecraft Orbit And Attitude Simulation Environment In Matlab/Simulink