A comprehensive study of magnetic exchanges in the layered oxychalcogenides Sr3Fe2O5Cu2Q2 (Q = S, Se)