Mass spectrum and magnetic moments of pentaquark states