A software-defined coherent fiber optic sensor for manufacturing machine diagnostic