Electromagnetic and Thermal Analysis of a Small Permanent-Magnet Tubular Machine