Linkage of modules and the Serre conditions