Periodic Finite State Controllers for Efficient POMDP and DEC-POMDP Planning