Arithmetic properties for generalized cubic partitions and overpartitions modulo a prime | Synapse