First-principles study of Ni-Co-Mn-Sn alloys with regular and inverse Heusler structure