Structural and magnetic properties of ternary Fe1–xMnxPt nanoalloys from first principles