Electronic and magnetic properties of SmCrSb3 and GdCrSb3: A first principles study