High-resolution inner-shell spectroscopies of free atoms and molecules using soft-x-ray beamlines at the third-generation synchrotron radiation sources