Numerical method for optimization of thermal cycling in 3D-printed polymerase chain reaction device