Time-optimal control of systems with fractional dynamics