Critical-state effects on microwave losses in type-II superconductors