Removing artificial Kapitza effects from bulk thermal conductivity calculations in direct molecular dynamics