Void formation during film growth: A molecular dynamics simulation study