SIRIUS project. I. Star formation models for star-by-star simulations of star clusters and galaxy formation