Ground states solutions for some non-autonomous Schrödinger-Bopp-Podolsky system