Structural and magnetic studies on SrCo2As2 and Ca(Co1−xFex)yAs2 compounds using x-ray and neutron scattering