Exchange and magnetic order in bulk and nanostructured Fe5Si3