Assessment of laser-induced damage in laser-micromachined rare-earth permanent magnets