Structure and maintenance policy of a multi-state series-parallel system