First-principles study of structural stability, electronic and elastic properties of ZrC compounds