Crystal structure and magnetic order in bilayered La1.39Sr1.61Mn2O7