Vibration diagnostics of bearing assemblies and gears