Magnetization switching in a mesoscopic NiFe ring with nanoconstrictions of wire