Additive manufacturing system and method of forming an object in a powder bed