EAST: Environment Aware Safe Tracking using Planning and Control Co-Design