Pasta-phase transitions in the inner crust of neutron stars