Enabling geometry and toolpath generalization for machine learning based thermal modeling in laser powder bed fusion