Determination of reaction mechanisms and evaluation of flame retardants in wood-melamine resin-composites