Palo Alto looks to restore positions in police and fire departments