Blue supergiants as descendants of magnetic main sequence stars