Martensitic transformation in TiNi based shape memory alloys – a first principles study