Text this: Command Filtering and Barrier Lyapunov Function-Based Adaptive Control for PMSMs with Core Losses and All-State Restrictions