Coarse-grained molecular dynamics modeling of reaction-induced phase separation