Real-Time Sampling-Based Safe Motion Planning for Robotic Manipulators in Dynamic Environments