Decomposition of the Roesser model and new conditions for local controllability and local observability