Predicting synthesis recipes of inorganic crystal materials using elementwise template formulation