Flexible Performance Based Neural Network Control for Mechanical Systems Under DoS Attack and Event